package cn.yunhe.entity;

import lombok.Data;

import java.io.Serializable;
@Data
public class House implements Serializable {

    private int id;//房屋id
    private User user;//用户对象，保存用户id
    private String title;//标题
    private Types types;//Types对象，保存房屋类型id
    private double floorAge;//房屋面积
    private double price;//房屋价格
    private String pubDate;//房产证日期
    private Street street;//街道对象，保存街道id
    private String contact;//联系人电话
    private String description;//发布详细信息


    public House(int id, User user, String title, Types types, double floorAge, double price, String pubDate, Street street, String contact, String description) {
        this.id = id;
        this.user = user;
        this.title = title;
        this.types = types;
        this.floorAge = floorAge;
        this.price = price;
        this.pubDate = pubDate;
        this.street = street;
        this.contact = contact;
        this.description = description;
    }

    public House() {
    }

    public House(String title, Types types, double floorAge, double price, String pubDate, Street street, String contact, String description) {
        this.title = title;
        this.types = types;
        this.floorAge = floorAge;
        this.price = price;
        this.pubDate = pubDate;
        this.street = street;
        this.contact = contact;
        this.description = description;
    }
}
